|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectagents.anac.y2011.TheNegotiator.UTBid
public class UTBid
The UTBid class is used to store a bid with it's corresponding utility. In this way constant recomputation of the utility values is avoided.
| Constructor Summary | |
|---|---|
UTBid(Bid bid,
double utility)
Creates a UTBid-object which stores a bid with it's corresponding utility. |
|
| Method Summary | |
|---|---|
int |
compareTo(UTBid utbid)
compareTo is used to compare UTbids. |
boolean |
getAlreadyOffered()
checks whether the bid has already been made |
Bid |
getBid()
Method which returns the bid. |
double |
getUtility()
Method which returns the utility. |
void |
setAlreadyOffered(boolean offered)
sets the the bid as offered or not |
void |
setBid(Bid bid)
Method which sets the bid. |
void |
setUtility(double utility)
Method which sets the utility. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UTBid(Bid bid,
double utility)
bid - of an agentutility - of the bid| Method Detail |
|---|
public Bid getBid()
public void setBid(Bid bid)
bid - public double getUtility()
public void setUtility(double utility)
utility - public boolean getAlreadyOffered()
public void setAlreadyOffered(boolean offered)
offered - public int compareTo(UTBid utbid)
compareTo in interface java.lang.Comparable<UTBid>another - utbid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||